import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export default defineStore('setting', () => {
  const fixWindow = ref<Boolean>(false)  // 是否固定窗口
  const showContent = ref<Boolean>(false)  // 是否显示内容
  const setFixWindow = () => {
    fixWindow.value = !fixWindow.value
  }
  const setShowContent = (result: boolean) => {
    showContent.value = result
  }
  return { fixWindow, showContent, setFixWindow, setShowContent }
})
